package cn.wxq.daily.empdailymgforserve.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/*
消息公告类
 */
public class Messages {

    /** 消息ID */
    private Integer mesId;
    /** 标题 */
    private String noticeTitle;
    /** 内容*/
    private String content;
    /** 操作人员 */
    private String createBy;
    /** 类型（1代表公告，2代表通知） */
    private String noticeType;
    /** 发布时间） */
//    @DateTimeFormat(pattern =  "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    public Integer getMesId() {
        return mesId;
    }

    public void setMesId(Integer mesId) {
        this.mesId = mesId;
    }

    public String getNoticeTitle() {
        return noticeTitle;
    }

    public void setNoticeTitle(String noticeTitle) {
        this.noticeTitle = noticeTitle;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getNoticeType() {
        return noticeType;
    }

    public void setNoticeType(String noticeType) {
        this.noticeType = noticeType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Messages{" +
                "mesId=" + mesId +
                ", noticeTitle='" + noticeTitle + '\'' +
                ", content='" + content + '\'' +
                ", createBy='" + createBy + '\'' +
                ", noticeType='" + noticeType + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
